;;; This file is part of guix-bavier.git
;;; Copyright © 2019 Eric Bavier <bavier@member.fsf.org>
;;; License: GPLv3+

(define-module (bavier packages joy)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages guile)
  #:use-module (gnu packages pkg-config)
  #:use-module ((guix licenses) #:prefix license:))

(define-public joy-in-the-morning
  (package
   (name "joy-in-the-morning")
   (version "1.0.0")
   (source (origin
            (method url-fetch)
            (uri "https://notabug.org/attachments/612e0441-52ad-4583-a5df-3541cf0d463f")
            (file-name (string-append name "-" version ".tar.gz"))
            (sha256
             (base32
              "0wz56vrdv8xgm3mnn3v4llhcb35h0pp06l0nqqjwsx5k8nf9rn51"))))
   (build-system gnu-build-system)
   (native-inputs `(("pkg-config" ,pkg-config)))
   (inputs `(("guile" ,guile-2.2)))
   (arguments
    `(#:phases
      (modify-phases %standard-phases
        (add-before 'build 'setup-guile-cache
          (lambda _ (setenv "HOME" "tmp") #t)))))
   (home-page "https://notabug.org/bavier/joy-in-the-morning")
   (synopsis "Joy programming language")
   (description "Joy is an implementation of the Joy programming language in
Guile Scheme using its multi-language support.")
   (license license:gpl3+)))
